package com.sunkq.test;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;
public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);

        while(sc.hasNext()){
            String str = sc.nextLine();
            StringBuilder sb = new StringBuilder();//牢记字符串缓冲区的建立语法
            sb.append(str);//字符串缓冲区的加入
            int size = str.length();
            int addZero = 8 - size%8;//addzero的可能值包括8
            while((addZero > 0)&&(addZero<8)){//注意边界调节，避免addzero=8
                sb.append("0");//使用‘’或“”都可
                addZero--;
            }
            String str1 = sb.toString();
            while(str1.length()>0){
                System.out.println(str1.substring(0,8));
                str1 = str1.substring(8);
            }

        }
    }

    private static void extracted3() {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            int count = in.nextInt();
            int [] data = new int[count];
            for(int i=0;i<count;i++){
                data[i] = in.nextInt();
            }
            Arrays.sort(data);
            System.out.print(data[0]);
            for(int i=1;i<count;i++){
                if(data[i]!=data[i-1]){
                    System.out.println(data[i]);
                }
            }
        }
    }

    private static void extracted2() {
        Scanner in = new Scanner(System.in);
        while(in.hasNext()){
            int count = in.nextInt();    //随机数总数
            int[] data = new int[count];
            for(int i=0; i < count; i++)    //读入生成的随机数
                data[i] = in.nextInt();

            Arrays.sort(data);    //使用库函数排序
            System.out.println(data[0]);    //打印排序后的第一个数（必不重复）
            for(int i=1; i < count; i++){    //打印其他数字，需与前面数字比较，不重复才能打印
                if(data[i] != data[i-1])
                    System.out.println(data[i]);
            }
        }
    }

    private static void extracted1() {
        Scanner scanner = new Scanner(System.in);
        String str1 = scanner.nextLine();
        String str2 = scanner.nextLine();
        HashMap<String,Integer>map = new HashMap();
        if(str1.length()>0){
            String [] arr = str1.split("");
            for(int i = 0;i<arr.length;i++){
                if(map.containsKey(arr[i].toLowerCase())){
                    int count = map.get(arr[i]);
                    map.put(arr[i],1+count);
                }else{
                    map.put(arr[i],1);
                }

            }
            System.out.print(map.get(str2));
        }
    }

    private static void extracted() {
        Scanner input = new Scanner(System.in);
        String str = input.nextLine();
        str.split("");
        String[] arr= str.split(" ");
        if(arr.length>1){
            System.out.print(arr[1].length());
        }else{
            System.out.print(arr[arr.length-1].length());
        }
        HashMap map = new HashMap();
    }
}
